<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=iso-8859-1"
pageEncoding="ISO-8859-1"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Add Student</title>
<link href="design.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript">
</script>
<style type="text/css">
       body
       {
               background-image:url('water.jpg');

       }
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<%
               /**
                 code checks to see if a session is valid. Else redirects back to login page
               */



       /**
          code checks to see if the request parameter contains cancel request
       */
       if(null!=request.getParameter("cancel")){
               String cancel = (String) request.getParameter("cancel");
               if(cancel.equals("1")){

               }
       }

%>
<div id="container">
       <div id="header">
               <h1>
                       Welcome Administrator

               </h1>
		       </div>
		       <div id="navigation">
		               <ul>
		                       <li><a href="homeAdmin.jsp">Home</a></li>
		                       <li><a href="addstu.html">Add Student</a></li>
		                       <li><a href="delStu.jsp">Delete Student</a></li>
		                       <%
		                               boolean checkUser = true;
		                               if(checkUser){
		                       %>
		                        <li><a href="view.jsp">View All</a></li>
		                       <% } %>
		                       <li><a href="home.jsp?logoutID=1">Logout</a></li>
		               </ul>
		       </div>
		       <div id="content-container">
		               <div id="content">
		                       <h2>
		                               Welcome Administrator
		                       </h2>
		
		  <form id="form1" name="form1" method="post" action="addStudent.jsp">
		    <p align="center" class="style1">Student Details </p>
		    <table width="287" height="150" border="1" align="center">
		      <tr>
		        <td width="86">UTA Id : </td>
		        <td width="185"><label>
		          <input type="text" name="id" />
		        </label></td>
		      </tr>
		      <tr>
		        <td>First Name : </td>
		        <td><label>
		          <input type="text" name="fName" />
		        </label></td>
		      </tr>
		      <tr>
		        <td>Last Name : </td>
		        <td><label>
		          <input type="text" name="lName" />
		        </label></td>
		      </tr>
		      <tr>
		        <td>E-mail : </td>
		        <td><label>
		          <input type="text" name="email" />
		        </label></td>
		      </tr>
		      <tr>
		        <td colspan="2"><label>
		          <div align="center">
		            <input type="submit" name="Submit" value="  Add  " />
		          </div>
		        </label></td>
		      </tr>
		    </table>
		    <p align="right">      
		    </p>
		  </form>
		</div>

               <div id="footer">
                       Copyright UTArlington, 2012
               </div>
       </div>
</div>
</body>
</html>